<%@page import="java.text.SimpleDateFormat"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="t" tagdir="/WEB-INF/tags" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>  

<t:wrapper>
    <jsp:body> 
		<h2>${subject.name}</h2>
		<c:choose>
			<c:when test="${empty min}">
				<h3>Etudiants toujours présent</h3>
			</c:when>
			<c:when test="${not empty min and min < 0}">
				<h3>Etudiants toujours absents</h3>
			</c:when>
			<c:otherwise>
				<h3>Etudiants absents au moins ${min} fois <c:if test="${not empty typeRoom}">en ${typeRoom}</c:if></h3>
			</c:otherwise>
		</c:choose>
		<ul>
			<c:forEach var="student" items="${students}">
				<li>${student.lastname} ${student.firstname}</li>
			</c:forEach>
		</ul>
	</jsp:body>
</t:wrapper>